package com.webinsky.folder.domain;

public enum FolderType {
	Item(0), Category(1), Hot(2);
	
	private int type;
	
	private FolderType(int type){
		this.type = type;
	}
	
	public int getType(){
		return type;
	}
	
	public static FolderType parse(int type){
		for ( FolderType t : FolderType.values() ){
			if ( t.getType() == type ){
				return t;
			}
		}
		return null;
	}
}
